const app = getApp();
const screenservice = require("../../apiservice/screen/screenservice");
const regeneratorRuntime = app.globalData.regeneratorRuntime;

var screenResources = [{
		id: 1,
		name: '德宝视'
	},
	{
		id: 2,
		name: '裂隙灯'
	}, {
		id: 3,
		name: '宣传册'
	}, {
		id: 4,
		name: '视力检查灯箱'
	}, {
		id: 5,
		name: '调试近视防治手册'
	},
];

const initScreenResources = async function() {
	let result = await screenservice.QueryAllEquipment();
	let resources = result.data;
	if (resources) {
		return resources;
	}else{
		return {};
	}
}

var screenState = [{
		id: 0,
		name: '新建'
	},
	{
		id: 1,
		name: '发布'
	}, {
		id: 2,
		name: '撤销'
	},
	{
		id: 3,
		name: '已完成'
	},
	{
		id: 4,
		name: '暂停'
	}, {
		id: 5,
		name: '进行中'
	},
];

var screenType = [{
		id: 100000000,
		name: '社区筛查'
	},
	// {
	// 	id: 100000001,
	// 	name: '校园筛查'
	// },
];

var screenEntryMode = [{
		id: 2,
		name: '单人模式'
	},
	{
		id: 1,
		name: '团队模式'
	},
];
//医保类型
var insuranceType = [{
		id: 0,
		name: '请选择'
	},
	{
		id: 12,
		name: '居民保险'
	},
	{
		id: 3,
		name: '城乡居民医保'
	},
	{
		id: 2,
		name: '城镇职工医保'
	},
	{
		id: 1,
		name: '省医保'
	},
	{
		id: 4,
		name: '新农合医保'
	},
	{
		id: 6,
		name: '铁路保险'
	},
	{
		id: 7,
		name: '商业保险'
	},
	{
		id: 8,
		name: '国际保险'
	},
	{
		id: 9,
		name: '城镇医保'
	},
	{
		id: 10,
		name: '小城镇医保'
	},
	{
		id: 11,
		name: '互助帮困'
	},
	{
		id: 13,
		name: '中小学生医保'
	},
	{
		id: 14,
		name: '离休'
	},
	{
		id: 15,
		name: '伤残'
	},
	{
		id: 16,
		name: '新三险外来从业人员'
	},
	{
		id: 17,
		name: '精简回乡'
	},
	{
		id: 5,
		name: '其他'
	},
];

var diseaseArray = [{
		id: 0,
		name: '请选择'
	},
	{
		id: 7,
		name: '近视手术'
	},
	{
		id: 3,
		name: '高度近视'
	},
	{
		id: 11,
		name: '医学验光配镜'
	},
	{
		id: 2,
		name: '儿童眼病'
	},
	{
		id: 8,
		name: '斜弱视'
	},
	{
		id: 5,
		name: '角膜塑形镜'
	},
	{
		id: 1,
		name: '白内障'
	},
	{
		id: 9,
		name: '眼底病'
	},
	{
		id: 4,
		name: '角膜及眼表'
	},
	{
		id: 10,
		name: '眼整形眼眶病'
	},
	{
		id: 12,
		name: '青光眼'
	},
	{
		id: 6,
		name: '泪道病'
	},
	{
		id: 14,
		name: '角膜移植'
	},
	{
		id: 15,
		name: 'VIP特需门诊'
	},
	{
		id: 13,
		name: '其他'
	},
];

var optionList = [{
		id: 1,
		name: '无光感'
	},
	{
		id: 2,
		name: '光感'
	},
	{
		id: 3,
		name: '手动'
	},
	{
		id: 4,
		name: '指数'
	},
	{
		id: 5,
		name: '3.4'
	},
	{
		id: 6,
		name: '3.6'
	},
	{
		id: 7,
		name: '3.8'
	},
	{
		id: 8,
		name: '3.9'
	},
	{
		id: 9,
		name: '4.0'
	},
	{
		id: 10,
		name: '4.1'
	},
	{
		id: 11,
		name: '4.2'
	},
	{
		id: 12,
		name: '4.3'
	},
	{
		id: 13,
		name: '4.4'
	},
	{
		id: 14,
		name: '4.5'
	},
	{
		id: 15,
		name: '4.6'
	},
	{
		id: 16,
		name: '4.7'
	},
	{
		id: 17,
		name: '4.8'
	},
	{
		id: 18,
		name: '4.9'
	},
	{
		id: 19,
		name: '5.0'
	},
	{
		id: 20,
		name: '5.1'
	},
	{
		id: 21,
		name: '5.2'
	},
	{
		id: 22,
		name: '5.3'
	},
];

var firstDiagnosis = [{
		id: 'SC0000000013',
		name: '正常'
	},
	{
		id: 'SC0000000085',
		name: '屈光不正'
	},
	{
		id: 'SC0000000081',
		name: '白内障'
	},
	{
		id: 'SC0000000082',
		name: '角膜病'
	},
	{
		id: 'SC0000000083',
		name: '泪道病'
	},
	{
		id: 'SC0000000084',
		name: '青光眼'
	},
	{
		id: 'SC0000000086',
		name: '糖尿病视网膜病变'
	},
	{
		id: 'SC0000000087',
		name: '眼肌及斜视'
	},
	{
		id: 'SC0000000088',
		name: '眼肌眼眶病'
	}

];




module.exports = {
	screenResources,
	screenType,
	screenEntryMode,
	insuranceType,
	diseaseArray,
	optionList,
	firstDiagnosis,
	initScreenResources,
}
